hi_cc_library_static(
  NAME
    ai::fmk::enhance_static
  SRCS
    enhance_utils.cpp
    enhance_c_api.cpp
    cloud_service.cpp
  CDEFS
    HAVE_PTHREAD
    ENHANCE_EXPORTS
    GOOGLE_PROTOBUF_NO_RTTI
    PROTOBUF_INLINE_NOT_IN_HEADERS=0
    HIAI_CLOUD_SERVICE_API_VISIABLE
  COPTS
    -frtti
)

hi_cc_library_shared(
  NAME
    ai::fmk::cloud_service_shared
  WHOLE_STATIC_LIBS
    ai::fmk::enhance_static
    ai::infra::log
    huawei::c_sec
  CDEFS
    OS_TYPE=0
  LOPTS
    -flto
)

hi_target_output_name(ai::fmk::cloud_service_shared hiai_enhance)